package com.example.testdemo.mapper;

import android.database.sqlite.SQLiteDatabase;

import com.example.testdemo.annotation.Component;
import com.example.testdemo.db.BaseDao;
import com.example.testdemo.vo.Color;

@Component
public class ColorDao extends BaseDao<Color> {

    public ColorDao() throws Exception {
        super();
    }

    @Override
    protected String createTableSql() {
        return "create table if not exists tb_color(id integer primary key autoincrement,type text)";
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
